home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 65.zip
/
BS1 part 65
/
Math Visin v2.1 disk 1.adf
/
Arexx.WB
/
PlotFiles
< prev
next >
Wrap
Text File
|
1992-02-12
|
2KB
|
79 lines
/* PlotFiles, plots pictures in batch mode. 6-Mar-90 dh
This program is designed to plot batches of unrelated pictures while
you are away from your computer. This lets you interactively explore
low-resolution functions during the day, and have MathVision plot high-
resolution versions overnight. There are two basic steps.
1. GATHER A BUNCH OF PICTURE IDEAS ON DISK.
In exploring a function, use a large sampling delta, which lets
you explore quickly. Then, adjust the sampling delta for the final
high resolution plot, start it plotting, and immediately hit the
<ESC> key. Save this using Save PictureAndFormula. This records
the size of the screen and the colors as well as the formula.
2. SUBMIT THE BATCH OF PICTURES TO MATHVISION USING PlotFiles.
Click once on PlotFiles, hold down the <SHIFT> key, click on all
the pictures to be plotted, and double-click the last picture.
(This is backwards of the normal Shift-select. Plotfiles must
be clicked FIRST.)
==========================================================================*/
ADDRESS "MathVision"
OPTIONS RESULTS
SIGNAL ON ERROR
PARSE ARG CommandLine /* break command line into filename array */
Delim = d2c(10) /* Carriage Return is delimiter */
TotalFilenames = 0
DO FOREVER
position = POS(Delim,CommandLine||Delim)
IF (position<2) THEN LEAVE
TotalFilenames = TotalFilenames+1
Filename.TotalFilenames = Left(CommandLine,position-1)
CommandLine = SubStr(CommandLine,position+1)
END
StopSign "F"
QuitIt = "F"
DO i = 1 to TotalFilenames /* scan through list of files */
IF EXISTS(filename.i)
THEN
DO
SAY "Plotting (" TIME() "): " filename.i
Pathname filename.i /* set the pathname */
LoadPictureAndFormula /* load the function */
Get Comment3 /* look in comment3 for */
comm = RESULT /* special plotting info */
IF (Word(comm,1) = "AREXX")
THEN INTERPRET substr( comm, 6)
ELSE Plot
/* Get PlotMode /* plot in correct mode */
t = "Plot"RESULT
INTERPRET T
*/ SavePictureAndFormula /* save it */
END
ELSE
DO
SAY "Can't Open Plot File: "filename.i
END
Get StopSign
QuitIt = RESULT
if (QuitIt=="T") THEN BREAK
END
SAY "Plotting Completed" TIME()
EXIT
ERROR: /* Error Diagnostic for return codes */
Get Diagnosis RC
SAY RESULT" on line "SIGL
do i=0 to 500; end
EXIT